package com.weiaibenpao.demo.chislim.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * Created by wlx on 2017/12/8.
 */

public class ProvinceBean implements IPickerViewData {

    /**
     * provincePerimeter : 1118.78
     * provinceKey : 北京市
     * level : province
     * provinceCode : 110000
     * citylist : [{"cityKey":"北京市","cityName":"全部","level":"province","cityCode":"","areaList":[],"id":0,"provinceId":1,"cityPerimeter":"1118.78"},{"cityKey":"北京城区","cityName":"北京市","level":"city","cityCode":"110100","areaList":[{"id":0,"cityId":1,"areaName":"全部","areaPerimeter":"1118.78","areaKey":"北京城区","level":"city"},{"id":1,"cityId":1,"areaName":"东城区","areaPerimeter":"49.30","areaKey":"东城区","level":"district"},{"id":2,"cityId":1,"areaName":"西城区","areaPerimeter":"42.71","areaKey":"西城区","level":"district"},{"id":3,"cityId":1,"areaName":"朝阳区","areaPerimeter":"391.42","areaKey":"朝阳区","level":"district"},{"id":4,"cityId":1,"areaName":"丰台区","areaPerimeter":"165.13","areaKey":"丰台区","level":"district"},{"id":5,"cityId":1,"areaName":"石景山区","areaPerimeter":"62.99","areaKey":"石景山区","level":"district"},{"id":6,"cityId":1,"areaName":"海淀区","areaPerimeter":"148.31","areaKey":"海淀区","level":"district"},{"id":7,"cityId":1,"areaName":"门头沟区","areaPerimeter":"248.08","areaKey":"门头沟区","level":"district"},{"id":8,"cityId":1,"areaName":"房山区","areaPerimeter":"332.46","areaKey":"房山区","level":"district"},{"id":9,"cityId":1,"areaName":"通州区","areaPerimeter":"570.42","areaKey":"通州区","level":"district"},{"id":10,"cityId":1,"areaName":"顺义区","areaPerimeter":"287.95","areaKey":"顺义区","level":"district"},{"id":11,"cityId":1,"areaName":"昌平区","areaPerimeter":"259.03","areaKey":"昌平区","level":"district"},{"id":12,"cityId":1,"areaName":"大兴区","areaPerimeter":"271.09","areaKey":"大兴区","level":"district"},{"id":13,"cityId":1,"areaName":"怀柔区","areaPerimeter":"423.65","areaKey":"怀柔区","level":"district"},{"id":14,"cityId":1,"areaName":"平谷区","areaPerimeter":"198.99","areaKey":"平谷区","level":"district"},{"id":15,"cityId":1,"areaName":"密云区","areaPerimeter":"351.18","areaKey":"密云区","level":"district"},{"id":16,"cityId":1,"areaName":"延庆区","areaPerimeter":"320.27","areaKey":"延庆区","level":"district"}],"id":1,"provinceId":1,"cityPerimeter":"1118.78"}]
     * id : 1
     * provinceName : 北京
     */

    private String provincePerimeter;
    private String provinceKey;
    private String level;
    private String provinceCode;
    private int id;
    private String provinceName;
    private List<CitylistBean> citylist;

    public String getProvincePerimeter() {
        return provincePerimeter;
    }

    public void setProvincePerimeter(String provincePerimeter) {
        this.provincePerimeter = provincePerimeter;
    }

    public String getProvinceKey() {
        return provinceKey;
    }

    public void setProvinceKey(String provinceKey) {
        this.provinceKey = provinceKey;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public List<CitylistBean> getCitylist() {
        return citylist;
    }

    public void setCitylist(List<CitylistBean> citylist) {
        this.citylist = citylist;
    }

    @Override
    public String getPickerViewText() {
        return this.provinceName;
    }

    public static class CitylistBean {
        /**
         * cityKey : 北京市
         * cityName : 全部
         * level : province
         * cityCode :
         * areaList : []
         * id : 0
         * provinceId : 1
         * cityPerimeter : 1118.78
         */

        private String cityKey;
        private String cityName;
        private String level;
        private String cityCode;
        private int id;
        private int provinceId;
        private String cityPerimeter;
        private List<AreaListBean> areaList;

        public String getCityKey() {
            return cityKey;
        }

        public void setCityKey(String cityKey) {
            this.cityKey = cityKey;
        }

        public String getCityName() {
            return cityName;
        }

        public void setCityName(String cityName) {
            this.cityName = cityName;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public String getCityCode() {
            return cityCode;
        }

        public void setCityCode(String cityCode) {
            this.cityCode = cityCode;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getProvinceId() {
            return provinceId;
        }

        public void setProvinceId(int provinceId) {
            this.provinceId = provinceId;
        }

        public String getCityPerimeter() {
            return cityPerimeter;
        }

        public void setCityPerimeter(String cityPerimeter) {
            this.cityPerimeter = cityPerimeter;
        }

        public List<AreaListBean> getAreaList() {
            return areaList;
        }

        public void setAreaList(List<AreaListBean> areaList) {
            this.areaList = areaList;
        }
    }
    public static  class AreaListBean{

        /**
         * id : 0
         * cityId : 3
         * areaName : 全部
         * areaPerimeter : 797.52
         * areaKey : 石家庄市
         * level : city
         */

        private int id;
        private int cityId;
        private String areaName;
        private String areaPerimeter;
        private String areaKey;
        private String level;
        private String areaCode;

        public String getAreaCode() {
            return areaCode;
        }

        public void setAreaCode(String areaCode) {
            this.areaCode = areaCode;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getCityId() {
            return cityId;
        }

        public void setCityId(int cityId) {
            this.cityId = cityId;
        }

        public String getAreaName() {
            return areaName;
        }

        public void setAreaName(String areaName) {
            this.areaName = areaName;
        }

        public String getAreaPerimeter() {
            return areaPerimeter;
        }

        public void setAreaPerimeter(String areaPerimeter) {
            this.areaPerimeter = areaPerimeter;
        }

        public String getAreaKey() {
            return areaKey;
        }

        public void setAreaKey(String areaKey) {
            this.areaKey = areaKey;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }
    }
}
